Relating operational and denotational semantics for input/output effects

نویسندگان

  • Roy L. Crole
  • Andrew D. Gordon
چکیده

We study the longstanding problem of semantics for input/output (I/O) expressed using side-eeects. Our vehicle is a small higher-order imperative language, with operations for interactive character I/O and based on ML syntax. Unlike previous theories, we present both operational and denotational semantics for I/O eeects. We use a novel labelled transition system that uniformly expresses both applicative and imperative computation. We make a standard deenition of bisimilarity. We prove bisimilarity is a congruence using Howe's method. Next, we deene a metalanguage M in which we may give a denotational semantics to O. M generalises Crole and Pitts' FIX-logic by adding in a param-eterised recursive datatype, which is used to model I/O. M comes equipped both with an operational semantics and a domain-theoretic semantics in the category CPPO of cppos (bottom-pointed posets with joins of !-chains) and Scott continuous functions. We use the CPPO semantics to prove that M is computationally adequate for the operational semantics using formal approximation relations. The existence of such relations is based on recent work of Pitts Pit94b] for untyped languages, and uses the idea of minimal invariant objects due to Freyd. A monadic-style textual translation into M induces a denotational semantics on O. Our nal result validates the denotational semantics: if the denotations of two O programs are equal then the O programs are in fact operationally equivalent.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

On the Semantic Foundations of Probabilistic Synchronous Reactive Programs

In this paper we consider synchronous parallel programs P that are composed by sequential randomized processes S Sk which communicate via shared variables First we give an operational semantics for the sequential components Si on the basis of a transition relation de ned in the classical SOS style a la Plotkin Plo which we use to specify the behaviour of P by a Markov chain whose transitions st...

متن کامل

On the semantic foundations of Probabilistic VERUS

In this paper we explain the semantic foundations of the tool Probabilistic VERUS Har98]. A Probabilistic VERUS program P consists of sequential randomized processes S 1 ; : : : ; S k that are executed in parallel and that communicate via shared variables. First we give an operational semantics for the sequential components on the basis of a transition relation deened in the classical SOS-style...

متن کامل

A Sound Metalogical Semantics for Input/Output Effects

We study the longstanding problem of semantics for in-put/output (I/O) expressed using side-eeects. Our vehicle is a small higher-order imperative language, with operations for interactive character I/O and based on ML syntax. Unlike previous theories, we present both operational and denotational semantics for I/O eeects. We use a novel labelled transition system that uniformly expresses both a...

متن کامل

A Timed Linda Language and its Denotational Semantics

We introduce a Timed Linda language (T-Linda) which is obtained by a natural timed interpretation of the usual constructs of the Linda model and by adding a simple primitive which allows one to specify time-outs. Parallel execution of processes follows the scheduling policy of interleaving, however maximal parallelism is assumed for actions depending on time. We first define the operational sem...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • Mathematical Structures in Computer Science

دوره 9  شماره 

صفحات  -

تاریخ انتشار 1999